class CreateFeatures < ActiveRecord::Migration
  def self.up
    create_table :features do |t|
			t.column :vail_id,   	:integer
			t.column :name,      	:string
      t.column :body,      	:text
      t.column :created_at,	:datetime
      t.column :updated_at,	:datetime
    end

		# Load Features data for Conferencing 
		Feature.create(:vail_id => Vail.find_by_name("Conferencing").id, :name => "Superior Voice Quality", :body => %{<p>Vail’s Conferencing is pure digital throughout, offering customers the best sound quality available. Participant voices aren’t clipped due to pauses, starts and interruptions that happen during normal conversations as the application automatically adjusts signal and noise sensitivity levels to ensure optimal clarity.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Conferencing").id, :name => "Flexible Options", :body => %{<p>Entirely software-based, Vail Conferencing can be configured for the needs of your meeting. Offerings include secure, hosted one-off conferences, scheduled broadcast calls and standing bridges, where customers have a fixed, always available conference number. No more need for scheduling. No more numbers to remember.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Conferencing").id, :name => "Total Control", :body => %{<p>Conference call control is configured and managed from a secure website. Choose entry/exit chimes, upload your own on-hold music, or add, drop and mute participants during a live call.</p>})

		# Load Features data for Outbound Notification 
		Feature.create(:vail_id => Vail.find_by_name("Outbound Notification").id, :name => "Web-based Flexibility and Convenience", :body => %{<p>Entire call campaigns to hundreds or thousands of individuals can be quickly designed, scheduled, and monitored via a personalized website.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Outbound Notification").id, :name => "Real-time Monitoring", :body => %{<p>You can watch your campaign’s progress and call-specific information in real-time and view results just minutes after calling completes.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Outbound Notification").id, :name => "Lower Costs", :body => %{<p>CallPush applications leverage the cost savings of the web and automated telephony systems to deliver customer contact services at a fraction of the cost of live agent telemarketing alternatives.</p>})

		# Load Features data for Vail Voice Platform 
		Feature.create(:vail_id => Vail.find_by_name("Vail Voice Platform").id, :name => "Multi-Fault-Tolerant Architecture", :body => %{<p>At Vail failure is not an option. An application failure interrupts a customer’s business process.</p><p>To approach a zero failure goal, Vail has deployed a fault-tolerant strategy. This means no single server failure will cause a cell failure, no cell failure can cause a site failure and no site failure can cause an application failure.</p><p>The platform has processed billions of mission-critical phone calls across 500 unique applications and 13,000 toll-free numbers. On average, the platform operates at less than 20% of total capacity. This allows Vail to handle spikes in call volume and component failures seamlessly.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Vail Voice Platform").id, :name => "Automated Load Testing", :body => %{<p>When a new application is brought online or an existing one is modified, can it handle the anticipated load? Vail provides an automated testing service that quickly and easily drives an application at levels above expected production load.</p><p>Vail recommends testing all mission critical application at 150% of anticipated load.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Vail Voice Platform").id, :name => "Continuous Automated Monitoring", :body => %{<p>Vail understands the many factors that threaten the reliability of voice applications. From system hardware and sub-system interoperability, to telecom service provisioning, to the complexities of today’s speech recognition software, applications need round-the-clock care to guarantee maximum uptime and uninterrupted service.</p><p>Vail’s 24/7 Network Operations Center (VNOC) provides monitoring and testing services ranging from fully automated user-side application testing to in-depth port-level monitoring, tracking and reporting. Monitoring screens at the VNOC provide a graphical and textual description of every critical element of the Vail Voice Platform and all live applications. Trained VNOC technical personnel monitor every element in the Vail Voice Platform, respond to resource- and port-specific alarms, and regularly check telecom and data service availability. The VNOC manages an automated application testing service that makes regularly scheduled test calls to client applications to ensure application-level functionality.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Vail Voice Platform").id, :name => "Tier One Support", :body => %{<p>The VNOC also tracks application and platform behavior patterns over time to ensure future application reliability and security. Analyzing historical data often reveals performance inconsistencies (e.g. call duration, call volume), unusual call activity that may be linked to unauthorized use, and spikes in system resource consumption. The VNOC can suggest application optimization and tuning methods and recommends steps to prevent critical failures before they occur.</p><p>The practices mentioned above are conducted according to documented guidelines and comply with customer security requirements. These practices allow Vail to resolve platform and application issues without undue delay or finger pointing, and ensures that callers can continue to access the system without any degration in caller experience.</p><p>When a problem does occur, the VNOC immediately calls the client. The client should never have to call the VNOC first.</p>})
		Feature.create(:vail_id => Vail.find_by_name("Vail Voice Platform").id, :name => "Supported Application Technologies", :body => %{<p>The Vail Platform supports applications written in VoiceXML (Version 2.1)/CCXML (Version 1.0), SALT (Version 1.0) and Microsoft Managed Code.</p>})
		
		# Load Features data for MSS 
		Feature.create(:vail_id => Vail.find_by_name("Microsoft Speech Server").id, :name => "Automating the Call-Center Application for Xbox Customer Support", :body => %{<p>The Xbox team chose Vail Systems to host and operate the xbox customer support call-center application, because the team knew that could perform these duties in a cost-effective way and had the right amount of product knowledge and experience.</p>})
  end

  def self.down
    drop_table :features
  end
end
